﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace DataEntity
{
    public class ProjectEntity : INotifyPropertyChanged
    {
        #region PropertyChanged事件
        public event PropertyChangedEventHandler PropertyChanged;

        public void onPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }
        #endregion

        private int _ID;

        public int ID
        {
            get { return _ID; }
            set
            {
                if (_ID != value)
                {
                    _ID = value;
                    this.onPropertyChanged("ID");
                }
            }
        }

        private string _ProjectNo;

        public string ProjectNo
        {
            get { return _ProjectNo; }
            set
            {
                if (_ProjectNo != value)
                {
                    _ProjectNo = value;
                    this.onPropertyChanged("ProjectNo");
                }
            }
        }

        private string _ProjectHost;

        public string ProjectHost
        {
            get { return _ProjectHost; }
            set
            {
                if (_ProjectHost != value)
                {
                    _ProjectHost = value;
                    this.onPropertyChanged("ProjectHost");
                }
            }
        }

        private string _ModelNo;

        public string ModelNo
        {
            get { return _ModelNo; }
            set
            {
                if (_ModelNo != value)
                {
                    _ModelNo = value;
                    this.onPropertyChanged("ModelNo");
                }
            }
        }

        private string _Client;

        public string Client
        {
            get { return _Client; }
            set
            {
                if (_Client != value)
                {
                    _Client = value;
                    this.onPropertyChanged("Client");
                }
            }
        }

        private string _Rate;

        public string Rate
        {
            get { return _Rate; }
            set
            {
                if (value != _Rate)
                {
                    _Rate = value;
                    this.onPropertyChanged("Rate");
                }
            }
        }

        private string _ShipType;

        public string ShipType
        {
            get { return _ShipType; }
            set
            {
                if (_ShipType != value)
                {
                    _ShipType = value;
                    this.onPropertyChanged("ShipType");
                }
            }
        }

        public float TotalLengthShip{set; get;}
        public float TotalLengthModel{set; get;}

        public float DistenthShip{set; get;}
        public float DistenthModel{set; get;}

        public float WidthShip{set; get;}
        public float WidthModel{set; get;}

        public float ShouChishuiShip{set; get;}
        public float ShouChishuiModel{set; get;}

        public float WeiChishuiShip{set; get;}
        public float WeiChishuiModel{set; get;}

        public float XingShengShip{set; get;}
        public float XingShengModel{set; get;}

        public float ZhouGaoShip{set; get;}
        public float ZhouGaoModel{set; get;}

        public float ZhouJianJuShip{set; get;}
        public float ZhouJianJUModel{set; get;}

        public float FangXingIndex{set; get;}

        private DateTime _CreateDate = DateTime.Now;
        public DateTime CreateDate
        {
            set { _CreateDate = value; }
            get { return _CreateDate; }
        }

        /// <summary>
        /// 1表示正常，0表示删除
        /// </summary>
        private int _Status = 1;
        public int Status
        {
            set { _Status = value; }
            get { return _Status; }
        }

    }
}
